import { createAction } from "redux-actions";

// 向服务器发请求
export const addProductToCart = createAction('addProductToCart')

// 将商品添加到store购物车数据
export const addProductToLocalCart = createAction('addProductToLocalCart')

// 获取购物车列表数据
export const loadCarts = createAction('loadCarts')

// 将服务器返回的购物车列表同步到store
export const saveCarts = createAction('saveCarts')

// 向服务器发请求删除
export const deleteProductFromCart = createAction('deleteProductFromCart')

// 删除本地store
export const deleteProductFromLocalCart = createAction('deleteProductFromLocalCart')


export const changeServiceProductNumber = createAction('chageServiceProductNumber')

export const changeLocalProductNumber = createAction('changeLocalProductNumber')